موتور جستجو برای جستجو در سایت
<!--Powered java code by WwW.IranGamer.Com--> <br><!-- START OF Find In Page Form DHTML --> <br><!-- SUMMARY BRIEF This DHTML mimics the Find (Ctrl+F) <br>feature in your browser. It will look in the current page for whatever <br>text the user inputs. If it finds the text, it hilights the text so the <br>user can see it. If it doesn"t find the text, it pops up a java <br>alert stating that the text was not found on the current page. <br>--> <br><!-- Put this portion of the inside of your <HEAD> tag <br>--> <br>< language="Java"> <br>var NS4 = (document.layers); var IE4 = (document.all); <br>var win = window; var n = 0; <br>function findInPage(str) { var txt, i, found; if (str == "") return <br>false; if (NS4) { if (!win.find(str)) while(win.find(str, false, true)) <br>n++; else n++; if (n == 0) alert("Not found."); } if (IE4) { txt = <br>win.document.body.createTextRange(); for (i = 0; i <= n && <br>(found = txt.findText(str)) != false; i++) { txt.moveStart("character", <br>1); txt.moveEnd("textedit"); } if (found) { txt.moveStart("character", <br>-1); txt.findText(str); txt.select(); txt.scrollIntoView(); n++; } else <br>{ if (n > 0) { n = 0; findInPage(str); } else alert("Not found."); } <br>} return false; <br>} <br></> <br><!-- Put this code into your page where you want the search form to <br>appear. --> <br><form name="search" onSubmit="return <br>findInPage(this.string.value);"> <br><p align="center"> <br><a target="_blank" style="text-decoration: none" <br>href="http://www.iransohrab.net"> <br><font color="#CCCCCC" style="font-size: 9pt"> <br><input name="string" type="text" size=15 onChange="n = 0;" <br>style="border: 1px solid #C0C0C0; padding-left: 4; padding-right: 4; <br>padding-top: 1; padding-bottom: 1"></font><font <br>color="#CCCCCC"><span style="font-size: 9pt"> <br><input type="submit" value="جستجو" style="border: 1px solid #C0C0C0; <br>padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1; <br>background-color: #CCCCCC">www.</span></font><font <br>color="#CCCCCC" face="Tahoma" style="font-size: <br>9pt">iransohrab.net</font></a></p> <br></form>